cmake_minimum_required(VERSION 3.8)
project(lidar_sub)

if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()
include_directories(
  include
  ${Boost_INCLUDE_DIRS}
)
# find dependencies
find_package(ament_cmake REQUIRED)

find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(sensor_msgs REQUIRED)
find_package(pcl_conversions REQUIRED)
find_package(PCL REQUIRED)
# uncomment the following section in order to fill in
# further dependencies manually.
# find_package(<dependency> REQUIRED)
add_executable(bluesea_node src/bluesea.cpp src/scan_process.cpp 
      src/file_sl.cpp src/calculete_seat.cpp)
ament_target_dependencies(bluesea_node 
  rclcpp 
  sensor_msgs
  PCL
  pcl_conversions
  std_msgs

)
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
target_link_libraries(bluesea_node ${PCL_LIBRARIES})
install(TARGETS
  bluesea_node 
  DESTINATION lib/${PROJECT_NAME})
ament_package()
